<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./q_user/css/style.css">
    <link rel="stylesheet" href="./q_user/css/base.css">
    <link rel="stylesheet" href="./q_user/css/normalize.css">
    <link rel="stylesheet" href="./q_user/css/swiper-bundle.min.css">

    <script src="./q_user/js/jquery-3.6.0.min.js"></script>
    <script src="./q_user/js/swiper-bundle.min.js"></script>
    <script src="./js/check.js"></script>
</head>
<body>
<!---------------------------------header----------------------->
<iframe src="./q_user/header.php" frameborder="0" name="header_iframe" width="100%" scrolling="no" marginheight="0" marginwidth="0"></iframe>
<main>
    <div class="banner">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><a href="#"><img src="./q_user/img/banner01.png" alt=""></a></div>
                <div class="swiper-slide"><a href="#"><img src="./q_user/img/banner02.png" alt=""></a></div>
                <div class="swiper-slide"><a href="#"><img src="./q_user/img/banner03.png" alt=""></a></div>
            </div>
            <!-- Add Pagination -->
            <div class="swiper-pagination"></div>
            <!-- Add Arrows -->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
        <script>
            var swiper = new Swiper('.swiper-container', {
                pagination: '.swiper-pagination',
                nextButton: '.swiper-button-next',
                prevButton: '.swiper-button-prev',
                paginationClickable: true,
                spaceBetween: 30,
                centeredSlides: true,
                autoplay: 2500,
                autoplayDisableOnInteraction: false
            });
        </script>
    </div>
    <div class="wrapper shoping">
        <div class="brand clearfix">
            <h4>热门商品</h4>
        </div>
        <div class="andshop">
            <ul class="shop clearfix">
                <?php if(is_array($products)):foreach($products as $pro):?>
                <li>
                    <a href="./q_user/productInfo.php?id=<?=$pro['id']?>"><img src="./../upload/<?=$pro['imgurl']?>" alt="">
                        <div class="sh-con">
                            <p><?=$pro['name']?></p>
                            <p>￥<?=$pro['price']?> <em></em></p>
                            <p><?=$pro['flname']?></p>
                        </div>
                    </a>
                </li>
                <?php endforeach; endif;?>
            </ul>
        </div>
    </div>
</main>
<iframe src="./q_user/footer.php" name="footer_iframe" width="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" style="display:block;border:0px;"></iframe>
</body>
</html>